2e1684414124c610174b860f856a2edc8bd8af55,bungee/src/main/java/me/lucko/luckperms/bungee/migration/MigrationBungeePerms.java,MigrationBungeePerms,execute,#LuckPermsPlugin#Sender#Object#List#String#,56

Before Change



    @Override
    public CommandResult execute(LuckPermsPlugin plugin, Sender sender, Object o, List<String> args, String label) throws CommandException {
        final Logger log = plugin.getLog();

        BungeePerms bp = BungeePerms.getInstance();
        if (bp == null) {
            log.severe("BungeePerms Migration: Error -> BungeePerms is not loaded.");
            return CommandResult.STATE_ERROR;
        }

        // Migrate all groups.
        log.info("BungeePerms Migration: Starting group migration.");
        int groupCount = 0;
        for (Group g : bp.getPermissionsManager().getBackEnd().loadGroups()) {
            groupCount++;

After Change



    @Override
    public CommandResult execute(LuckPermsPlugin plugin, Sender sender, Object o, List<String> args, String label) throws CommandException {
        Consumer<String> log = s -> {
            Message.MIGRATION_LOG.send(sender, s);
            Message.MIGRATION_LOG.send(plugin.getConsoleSender(), s);
        };
        log.accept("Starting BungeePerms migration.");

        BungeePerms bp = BungeePerms.getInstance();
        if (bp == null) {